﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using WinnerCMS.Common;
namespace WinnerCMS.Model
{
    /// <summary>
    /// 默认模板
    /// </summary>
    [Serializable]
    public class DefaultTemplates
    {
        private string _ArticleShow = string.Empty;
        private string _ArticleCategory = string.Empty;
        private string _ArticleSpecial = string.Empty; 
        private string _ArticleSpecialIndex = string.Empty;
        private string _SoftShow = string.Empty;
        private string _SoftCategory = string.Empty;
        private string _SoftSpecial = string.Empty; 
        private string _SoftSpecialIndex = string.Empty;

        private string _PhotoShow = string.Empty;
        private string _PhotoCategory = string.Empty;
        private string _PhotoSpecial = string.Empty; 
        private string _PhotoSpecialIndex = string.Empty;


        private string _ShopShow;
        private string _ShopCategory;
        private string _ShopSpecial; 
        private string _ShopSpecialIndex;

        private string _AskShow = string.Empty;
        private string _AskCategory = string.Empty;
        private string _AskSpecial = string.Empty; 
        private string _AskSpecialIndex = string.Empty;

        public void Init()
        {
            DefaultTemplates t = SerializableHelper.DeSerialize<DefaultTemplates>(new FileInfo(HttpServer.MapPath("~/Config/WinnerCMS.DefaultTemplates.config")));

            this._ArticleShow  = t.ArticleShow;
            this._ArticleCategory = t.ArticleCategory;
            this._ArticleSpecial = t.ArticleSpecial; 
            this._ArticleSpecialIndex = t.ArticleSpecialIndex;

            this._SoftShow = t.SoftShow;
            this._SoftCategory = t.SoftCategory;
            this._SoftSpecial = t.SoftSpecial; 
            this._SoftSpecialIndex = t.SoftSpecialIndex;

            this._PhotoShow = t.PhotoShow;
            this._PhotoCategory = t.PhotoCategory;
            this._PhotoSpecial = t.PhotoSpecial; 
            this._PhotoSpecialIndex = t.PhotoSpecialIndex;

            this._ShopShow = t.ShopShow;
            this._ShopCategory = t.ShopCategory;
            this._ShopSpecial = t.ShopSpecial; 
            this._ShopSpecialIndex = t.ShopSpecialIndex;

            this._AskShow = t.AskShow;
            this._AskCategory = t.AskCategory;
            this._AskSpecial = t.AskSpecial; 
            this._AskSpecialIndex = t.AskSpecialIndex;

        }


        #region ArticleShow
        /// <summary>
        /// ArticleShow
        /// </summary>
        public string ArticleShow
        {
            set
            {
                _ArticleShow = value;
            }
            get
            {
                return _ArticleShow;
            }
        }
        #endregion

        #region ArticleCategory
        /// <summary>
        /// ArticleCategory
        /// </summary>
        public string ArticleCategory
        {
            set
            {
                _ArticleCategory = value;
            }
            get
            {
                return _ArticleCategory;
            }
        }
        #endregion

        #region ArticleSpecial
        /// <summary>
        /// ArticleSpecial
        /// </summary>
        public string ArticleSpecial
        {
            set
            {
                _ArticleSpecial = value;
            }
            get
            {
                return _ArticleSpecial;
            }
        }
        #endregion
         
        #region ArticleSpecialIndex
        /// <summary>
        /// ArticleSpecialIndex
        /// </summary>
        public string ArticleSpecialIndex
        {
            set
            {
                _ArticleSpecialIndex = value;
            }
            get
            {
                return _ArticleSpecialIndex;
            }
        }
        #endregion

        #region SoftShow
        /// <summary>
        /// SoftShow
        /// </summary>
        public string SoftShow
        {
            set
            {
                _SoftShow = value;
            }
            get
            {
                return _SoftShow;
            }
        }
        #endregion

        #region SoftCategory
        /// <summary>
        /// SoftCategory
        /// </summary>
        public string SoftCategory
        {
            set
            {
                _SoftCategory = value;
            }
            get
            {
                return _SoftCategory;
            }
        }
        #endregion

        #region SoftSpecial
        /// <summary>
        /// SoftSpecial
        /// </summary>
        public string SoftSpecial
        {
            set
            {
                _SoftSpecial = value;
            }
            get
            {
                return _SoftSpecial;
            }
        }
        #endregion
         
        #region SoftSpecialIndex
        /// <summary>
        /// SoftSpecialIndex
        /// </summary>
        public string SoftSpecialIndex
        {
            set
            {
                _SoftSpecialIndex = value;
            }
            get
            {
                return _SoftSpecialIndex;
            }
        }
        #endregion

        #region PhotoShow
        /// <summary>
        /// PhotoShow
        /// </summary>
        public string PhotoShow
        {
            set
            {
                _PhotoShow = value;
            }
            get
            {
                return _PhotoShow;
            }
        }
        #endregion

        #region PhotoCategory
        /// <summary>
        /// PhotoCategory
        /// </summary>
        public string PhotoCategory
        {
            set
            {
                _PhotoCategory = value;
            }
            get
            {
                return _PhotoCategory;
            }
        }
        #endregion

        #region PhotoSpecial
        /// <summary>
        /// PhotoSpecial
        /// </summary>
        public string PhotoSpecial
        {
            set
            {
                _PhotoSpecial = value;
            }
            get
            {
                return _PhotoSpecial;
            }
        }
        #endregion
         
        #region PhotoSpecialIndex
        /// <summary>
        /// PhotoSpecialIndex
        /// </summary>
        public string PhotoSpecialIndex
        {
            set
            {
                _PhotoSpecialIndex = value;
            }
            get
            {
                return _PhotoSpecialIndex;
            }
        }
        #endregion

        #region ShopShow
        /// <summary>
        /// ShopShow
        /// </summary>
        public string ShopShow
        {
            set
            {
                _ShopShow = value;
            }
            get
            {
                return _ShopShow;
            }
        }
        #endregion

        #region ShopCategory
        /// <summary>
        /// ShopCategory
        /// </summary>
        public string ShopCategory
        {
            set
            {
                _ShopCategory = value;
            }
            get
            {
                return _ShopCategory;
            }
        }
        #endregion

        #region ShopSpecial
        /// <summary>
        /// ShopSpecial
        /// </summary>
        public string ShopSpecial
        {
            set
            {
                _ShopSpecial = value;
            }
            get
            {
                return _ShopSpecial;
            }
        }
        #endregion
         
        #region ShopSpecialIndex
        /// <summary>
        /// ShopSpecialIndex
        /// </summary>
        public string ShopSpecialIndex
        {
            set
            {
                _ShopSpecialIndex = value;
            }
            get
            {
                return _ShopSpecialIndex;
            }
        }
        #endregion

        #region AskShow
        /// <summary>
        /// AskShow
        /// </summary>
        public string AskShow
        {
            set
            {
                _AskShow = value;
            }
            get
            {
                return _AskShow;
            }
        }
        #endregion

        #region AskCategory
        /// <summary>
        /// AskCategory
        /// </summary>
        public string AskCategory
        {
            set
            {
                _AskCategory = value;
            }
            get
            {
                return _AskCategory;
            }
        }
        #endregion

        #region AskSpecial
        /// <summary>
        /// AskSpecial
        /// </summary>
        public string AskSpecial
        {
            set
            {
                _AskSpecial = value;
            }
            get
            {
                return _AskSpecial;
            }
        }
        #endregion
         
        #region AskSpecialIndex
        /// <summary>
        /// AskSpecialIndex
        /// </summary>
        public string AskSpecialIndex
        {
            set
            {
                _AskSpecialIndex = value;
            }
            get
            {
                return _AskSpecialIndex;
            }
        }
        #endregion
    }
}
